//  Created by <Omar MALAGOUEN>

//  Copyright 2011 All rights reserved.
//

#include "cdialogeventname.h"
#include "ui_cdialogeventname.h"

CDialogEventName::CDialogEventName(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::CDialogEventName)
{
    ui->setupUi(this);
}

CDialogEventName::~CDialogEventName()
{
    delete ui;
}

void CDialogEventName::changeEvent(QEvent *e)
{
    QDialog::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

void CDialogEventName::setDefaultEventName(QString str)
{
  this->ui->lineEdit->setText(str);
}

void CDialogEventName::setDir(QString str)
{
  this->ui->lineEdit_dir->setText(str);
}

QString CDialogEventName::getDir()
{
  return this->ui->lineEdit_dir->text();
}


QString CDialogEventName::getEventName()
{
  return this->ui->lineEdit->text();
}
